From cef5b96f8cf7508d494f6fb34dac021a9a3cda78 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Wed, 9 May 2001 15:34:53 +0000 Subject: [PATCH] (tar-extract): Pay attention to the value of coding-system-for-read, if it is non-nil. --- lisp/tar-mode.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lisp/tar-mode.el b/lisp/tar-mode.el index 264bc37f2e6..fac148b2b63 100644 --- a/lisp/tar-mode.el +++ b/lisp/tar-mode.el @@ -716,10 +716,11 @@ appear on disk when you save the tar-file's buffer." ;; We need to mimic the parts of insert-file-contents ;; which determine the coding-system and decode the text. (let ((coding - (and set-auto-coding-function - (save-excursion - (funcall set-auto-coding-function - name (- (point-max) (point)))))) + (or coding-system-for-read + (and set-auto-coding-function + (save-excursion + (funcall set-auto-coding-function + name (- (point-max) (point))))))) (multibyte enable-multibyte-characters) (detected (detect-coding-region 1 (min 16384 (point-max)) t))) -- 2.30.2